/// <reference path='../_all.ts' />

module PiiS {
    'use strict';

    /**
      *   The person controller for the app. The controller:
      *   - Creates new user.
      */
    export interface IPersonScope extends ng.IScope {

        /**
          * Field used to hold the name of the person to create.
          */
        personDescription: string;

        /**
          * Field indicating if form is currently held on loading stage.
          */
        loading: boolean;

        /**
          * Number of users registered in the system.
          */
        registeredUsers: number;

        /**
          * Number of votes registered in the system.
          */
        votesCast: number;

        /**
          * Contacts the remote server to create new Person instance.
          */
        createPerson: () => void;
    }
}